<script setup>
import { useCount } from '../hooks/useCount';

const {count ,start ,stop ,isFinish} = useCount({ms:5000})

</script>

<template>
  <h1>about</h1>
  <p>倒计时: {{ count }}</p>
  <button @click="start">开始</button>
  <button @click="stop">暂停</button>
  <p>isFinish{{ isFinish }}</p>

</template> 

<style lang="scss" scoped>

</style>
